# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-hatari
pkgver=0_git20200402
pkgrel=0
_commit="f8c35958ec1c93c32d41d61fa4903b2f5daec78c"
pkgdesc="Atari ST/STE/TT/Falcon emulator for libretro"
url="https://github.com/libretro/hatari"
arch="all"
license="GPL-2.0-only"
makedepends="zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/hatari/archive/$_commit.tar.gz"
builddir="$srcdir/hatari-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 hatari_libretro.so "$pkgdir"/usr/lib/libretro/hatari_libretro.so
}

sha512sums="c983adb31c361bb717015d0b1ea3e87e31e2fb8a3a3eb8b51827f91e777d9b93af7357ff2d0442bb2b3540ee26b340b4d0b9fc55e69bbf8126b18939dd4fac0c  libretro-hatari-f8c35958ec1c93c32d41d61fa4903b2f5daec78c.tar.gz"
